package com.stoney.handler;

/**
 * Created by Stony on 2015/12/16.
 */
public class SpiderResource {
    public String url;
    public SpiderResourceType type;

    public SpiderResource(String url, SpiderResourceType type) {
        this.url = url;
        this.type = type;
    }

    public static enum SpiderResourceType{
        HTML,JS,CSS,IMAGE,MEDIA,REPEAT;

    }

    @Override
    public String toString() {
        StringBuffer buffer = new StringBuffer(100);
        buffer.append("[url = ").append(url).append(", type = ").append(type).append("]");
        return buffer.toString();
    }
}
